#ifndef GLOBALDATA_H
#define GLOBALDATA_H

#include <QObject>

class SignalObj: public QObject
{
    Q_OBJECT

signals:
    void sigLoginStatusChanged();
};

class GlobalData
{

public:
    explicit GlobalData(){}

public:
    SignalObj signalObj;

    bool    isLogSuccess = false;

    // 0 :管理员  ,1: 辅导员, 2: 教师, 3:学生
    int     userType = -1;
    int     Account = -1;
    QString Password = "";
    QString name = "";

    QString dbName = "../student.db";



};

#endif // GLOBALDATA_H
